package service.impl;

import dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.User;
import service.UserService;

@Service("userService")
public class UserServiceimpl implements UserService {
    @Autowired
    private UserMapper userDao;

    public User findall(){
        return userDao.findall();
    }

    @Override
    public User findUser(String username,String password) {
        return userDao.findUser(username,password);
    }

    @Override
    public boolean addUser(User user) {
        return userDao.addUser(user);
    }
}
